package com.wctj.api.base.enums;

/**
* @Author: lydms
* @Date: 2024/9/21
*/
public enum OrderTypeEnums {
    shop("shop", "购物")
    ,recharge("recharge", "充值")
    ,maidan("maidan", "买单")
    ,shopMaidan("shop_maidan", "购物买单")
    ,shopHb("shop_hb", "买单")
    ;
    /**
     * shop
     * recharge
     * maidan
     * shop_maidan
     * shop_hb
     */
    private String code;
    private String msg;
    OrderTypeEnums(String code, String message) {
        this.code = code;
        this.msg = message;
    }
    public String getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }

    public static PayTypeEnums of(int code) {
        for (PayTypeEnums apiCode : PayTypeEnums.values()) {
            if (apiCode.getCode() == code) {
                return apiCode;
            }
        }
        return null;
    }
}
